<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Station_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-station_name" data-rule="required" class="form-control" name="row[station_name]" type="text" value="{$row.station_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text" readonly value="{$row.address|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coordinate_lat')}:</label>
        <div class="col-xs-12 col-sm-3">
            <div class="input-group">
                <input id="c-coordinate_lat" data-rule="required" class="form-control" readonly name="row[coordinate_lat]" type="text" value="{$row.coordinate_lat|htmlentities}">
            </div>
        </div>
    
        <label class="control-label col-xs-12 col-sm-2">{:__('Coordinate_lng')}:</label>
        <div class="col-xs-12 col-sm-3">
            <div class="input-group">
                <input id="c-coordinate_lng" data-rule="required" class="form-control" readonly name="row[coordinate_lng]" type="text" value="{$row.coordinate_lng|htmlentities}">
            </div>
        </div>
        <a  class="btn btn-primary" class="input-group-btn" data-toggle="wleaflet-select" data-input-id="c-address" data-lat-id="c-coordinate_lat" data-lng-id="c-coordinate_lng">坐标</a>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
